package com.ruoyi.gd.qybjklog.domain.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 企业报价库日志业务对象 qybjk_log
 *
 * @author ruoyi
 * @date 2024-07-20
 */

@Data
public class QybjkLogBo {

    /**
     * id
     */
    private int id;

    /**
     * 业务id
     */
    @NotBlank(message = "业务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ywid;

    /**
     * 日志消息
     */
    @NotBlank(message = "日志消息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;

    private String status;
    private String filename;

    /**
     * 请求参数
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params = new HashMap<>();

}
